package com.peace.hospital.feign.outpatientdepartment.service;

import com.peace.hospital.entity.common.People;
import com.peace.hospital.entity.outpatientdept.Patientinformation;
import com.peace.hospital.entity.outpatientdept.dto.RegistrationEntryDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.sql.Date;


@FeignClient("outpatientDepartment")
public interface OutpatientDepatmentService {
    @RequestMapping(value = "/patientinformation/add",method = RequestMethod.POST)
    String addPeopleRegister(@RequestBody RegistrationEntryDto registrationEntryDto);

    @RequestMapping(value = "/patientinformation/delete/{patid}",method = RequestMethod.PUT)
    String updatePeopleRegisterByid(@RequestParam("patid") Integer patid);

    @RequestMapping(value = "/patientinformation/select",method = RequestMethod.GET,consumes="application/json")
    String findPeopleRegisterByDate(@RequestBody Patientinformation patientinformation);




    /**
     * 通过病人姓名&身份证号查询消费信息计算总消费表
     */
    @RequestMapping(value = "/particulars/select", method = RequestMethod.GET,consumes="application/json")
    String findConsumptionDetailsByNameAndCard(@RequestBody People people);
    /**
     * 通过病人ID结算*/
    @RequestMapping(value = "/particulars/settlement", method = RequestMethod.GET,consumes="application/json")
    String peopleSettlementById(People people);
}
